﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WeiXin.aspx.cs" Inherits="WeiXin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>


    <%if (false)
      { %>
    <script src="../Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <% } %>
    <script src='<%=ResolveUrl("~/Scripts/jquery-1.4.1.min.js")%>' type="text/javascript"></script>

    <script type="text/javascript">
        jQuery(document).ready(function () {
             jQuery.post('<%=ResolveUrl("~/Ajax/WeiXinFeedList.ashx")%>', function (data, textStatus) {
                 if (textStatus = "success") {
                     var d = jQuery.parseJSON(data);
                     var str = "";
                     for(var i=0;i<d.length;i++)
                     {
                         str += "<a href='" + d[i].content_url + "' target='_blank'>" + d[i].title+ "</a><br/>";
                     }
                     jQuery("#con").append(str);
            }
            else {
                
            }
        });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="con">
        
    </div>
    </form>
</body>
</html>
